<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>相对定位-莲华</title>

  <style>
    .box{
      width: 100px;
      height: 100px;
      border: 1px solid;
      margin-left: 10px;
      text-align: center;
      line-height: 100px;
    }
    .box-1{
        position: relative;
        top:180px;
        left: 80px
    }
    .box-3{
        position: relative;
        top:-100px;
        left: 160px;
    }
    .box-4{
        position: relative;
         top:-40px;
    }
    .box-5{
      position: relative;
      top:-140px;
      left: 160px;
    }
  </style>

</head>
<body>

<div class="box box-1">
  1
</div>
<div class="box ">
  2
</div>
<div class="box box-3">
  3
</div>
<div class="box box-4">
  4
</div>
<div class="box box-5">
  5
</div>

</body>
</html>